<?php

namespace common\models\models;


use backend\models\Admin;

class ManagerModel
{
    /**
     * uid 转 username
     * @param $uid
     * @return mixed|string
     */
    public static function uid2name($uid)
    {
        $admin = Admin::find()->where(['id' => $uid])->asArray()->one();
        return !empty($admin['username']) ? $admin['username'] : '山林野鸟';
    }
}